<?php

namespace App\Observers;

use App\Models\OrderRefund;

class OrderRefundObserver
{
	public function creating(OrderRefund $refund)
	{
		if (! $refund->refund_number) {
			$refund->refund_number = serial_uuid($refund, 'refund_number');
			if (! $refund->refund_number) {
				return false;
			}
		}
	}
}
